function numbersonly(e, locator) {
	document.getElementById(locator).maxLength = 2;
	var unicode = e.charCode ? e.charCode : e.keyCode;
	if (unicode != 8) { // if the key isn't the backspace key (which we should
		// allow)
		if (unicode < 48 || unicode > 57) // if not a number
			return false; // disable key press
	}
	return true;
}

function getXmlHttpRequest() {
	if (typeof XMLHttpRequest == "undefined")
		XMLHttpRequest = function() {
			try {
				return new ActiveXObject("Msxml2.XMLHTTP.6.0");
			} catch (e) {
			}
			try {
				return new ActiveXObject("Msxml2.XMLHTTP.3.0");
			} catch (e) {
			}
			try {
				return new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
			}
			// Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant
			throw new Error("This browser does not support XMLHttpRequest.");
		};
	return new XMLHttpRequest();
}